package com.xqboss.apps.domain.nft;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.persistence.Column;
import java.util.Date;

/**
 * <p>
 * 专属购
 * </p>
 *
 * @author HaoLun
 * @since 2022-09-22
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "ExclusiveBuy对象", description = "专属购")
public class ExclusiveBuy {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "用户ID")
    private Long userId;

    @ApiModelProperty(value = "开售前xx分钟")
    private Integer beforeMinute;

    @ApiModelProperty(value = "藏品ID")
    private Long nftId;

    @ApiModelProperty(value = "抢购次数")
    private Integer buyTimes;

    @ApiModelProperty(value = "初始次数")
    private Integer initTimes;

    private Integer groupId;

    @ApiModelProperty(value = "专属购类型 0 藏品 1箱子 2活动")
    private Integer exclusiveType;

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Column(insertable = false, updatable = false)
    protected Date createTime;

    @Column(insertable = false, updatable = false)
    @JsonIgnore
    protected Date updateTime;


}
